import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'Mes/Tm',
    path: 'mes/tm',
    redirect: 'noRedirect',
    meta: {
      title: $t('mes.tm.title'),
      icon: 'ic:round-looks',
      noCache: false,
    },
    children: [
      {
        name: 'Tooltype',
        path: 'tooltype',
        component: () => import('#/views/mes/tm/tooltype/index.vue'),
        meta: {
          title: $t('mes.tm.children.Tooltype.title'),
          icon: 'icon-park-outline:mind-mapping',
        },
      },
      {
        name: 'Tool',
        path: 'tool',
        component: () => import('#/views/mes/tm/tool/index.vue'),
        meta: {
          title: $t('mes.tm.children.Tool.title'),
          icon: 'la:calendar-alt-solid',
        },
      },
    ],
  },
];

export default routes;
